package ru.aptu.gsp_banking.service;

import ru.aptu.gsp_banking.domain.Card;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 11/18/11
 * Time: 1:30 AM
 */

public interface CardService {

    List<Card> listCard(Integer accountId);

    void removeCard(Integer id);

    void addCard(Card card);

    void updateCard(Card card);

    Card getCard(Integer cardId);

    boolean checkCard(Integer cardId, String name);

    String getFreeCardNumber();
}
